﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using BUS;
using DTO;

public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        List<SanPhamDto> sanphammoi = SanPhamBus.LayDanhSachSanPhamMoi();
        DataSanPhamMoi.DataSource = sanphammoi;
        DataSanPhamMoi.DataBind();

        List<SanPhamDto> sanphambanchay = SanPhamBus.LayDanhSachSanPhamBanChay();
        DataSanPhamBanChay.DataSource = sanphambanchay;
        DataSanPhamBanChay.DataBind();

        List<SanPhamDto> sanphamyeuthich = SanPhamBus.LayDanhSachSanPhamDuocYeuThich();
        DataSanPhamYeuThich.DataSource = sanphamyeuthich;
        DataSanPhamYeuThich.DataBind();

        List<SanPhamDto> sanphamkhuyenmai = SanPhamBus.LayDanhSachSanKhuyenMaiLimit();
        DataSanPhamKhuyenMai.DataSource = sanphamkhuyenmai;
        DataSanPhamKhuyenMai.DataBind();
    }
}
